import 'package:flutter_sample/src/model/sync_type.dart';
import 'package:isar_community/isar.dart';

part 'health_data_sync.g.dart';

/// 健康数据同步
@collection
class HealthDataSyncModel {
  HealthDataSyncModel({
    this.userId,
    this.date,
    this.isDownload,
  });

  Id? id;

  /// 用户ID
  @Index()
  String? userId;

  /// 日期(年—月)
  String? date;

  /// 同步类型
  @Enumerated(EnumType.name)
  SyncType? syncType;

  /// 是否已下载
  bool? isDownload;

}
